﻿using System;

namespace Labthink.PCSoft.UniversalHost4.Utility
{
    public class BusinessException : Exception
    {
        public int ErrorCode { get; set; }

        public BusinessException()
        {

        }

        public BusinessException(string message) : base(message)
        {

        }

        public BusinessException(string message, Exception innerException) : base(message, innerException)
        {

        }

        public BusinessException(string message, int errorCode) : base(message)
        {
            ErrorCode = errorCode;
        }

        public BusinessException(string message, int errorCode, Exception innerException) : base(message, innerException)
        {
            ErrorCode = errorCode;
        }
    }
}
